/**
 * 
 */
package org.stars.util;

import java.io.InputStream;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 *
 * @author Francesco Benincasa (908099)
 * @date 11/nov/07, 22:16:40
 *
 */
public class FileDefaultEventHandler implements FileResourceEventHandler {
	
	protected Log log=LogFactory.getLog(getClass());

	@Override
	public void onFoundResourceEvent(String path, String resourceName, InputStream inputStream) {
		log.debug("Found file "+resourceName+" in "+path);
		/*
		InputStreamReader isr=null;
		BufferedReader br=null;
		
		try {
		isr=new InputStreamReader(inputStream);
		br=new BufferedReader(isr);
		String line="";
		int count=0;
		while ((line=br.readLine())!=null)
		{
			System.out.println(count+" "+line);
			count++;
		}
		} catch (Exception e) {
			try {
			br.close();
			isr.close();
			} catch(Exception a1) 
			{
				
			}
		}*/
		
	}


}
